home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: cs.vu.nl!jalten
- From: jalten@cs.vu.nl (Alten JP)
- Subject: Re: Newbie: Simple Button Question
- Nntp-Posting-Host: kits.cs.vu.nl
- References: <4el9ft$h1t@news.xs4all.nl>
- Sender: news@cs.vu.nl
- Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
- Date: Tue, 30 Jan 1996 16:47:41 GMT
- X-Newsreader: TIN [version 1.2 PL2]
- Message-ID: <DM06nI.29y.0.-s@cs.vu.nl>
-
- Anthony Moendir (maris@xs4all.nl) wrote:
- : Can anyone tell me wat's wrong with this code?
- : The button does'n work
-
- Will the button not appear, not get the focus,
- not appear to be 'pushed', not notify the parent window
- or will the function FUNC never be called, while the button
- looks like it is being pushed?
-
- Maybe you'd want to put the button in the client window
- of the Decorated Frame, since the decorated frame usually
- gts a different client windows (default) to put your
- things in...
-
- try something like:
-
- //In constructor
- new TButton(ClientWnd, ID_BUTTON, "Do something", 498 , 12,
- 150, 30, FALSE);
-
- and try defining your own client window when constructing the
- DecoratedFrame.
-
- No luck? Write me.
-
- Jelle Paul
-
- --
- +-------------------------------------------------------+
- | Jelle Paul Alten | jalten@cs.vu.nl |
- | Vrije Universiteit Amsterdam | |
- +-------------------------------------------------------+
-